Button

Button does not propagates findWidgetAt after it. This happens mostly because when using buttons, it is common to not find its childrens after it since it handles most pointer events. If that is not desired, simply change propagates to true.

Constructors

this
this(int x, int y, int w, int h)
Undocumented in source.

Members

Enums

State
enum State
Undocumented in source.

Functions

onMouseDown
void onMouseDown()
Undocumented in source. Be warned that the author may not have intended to support it.
onMouseEnter
void onMouseEnter()
Undocumented in source. Be warned that the author may not have intended to support it.
onMouseExit
void onMouseExit()
Undocumented in source. Be warned that the author may not have intended to support it.
onMouseUp
void onMouseUp()
Undocumented in source. Be warned that the author may not have intended to support it.
onRender
void onRender()
Undocumented in source. Be warned that the author may not have intended to support it.
setButtonRenderer
void setButtonRenderer(IButtonRenderer renderer)
Undocumented in source. Be warned that the author may not have intended to support it.
setOnClick
Button setOnClick(void delegate() onClick)
Undocumented in source. Be warned that the author may not have intended to support it.
setOnHover
Button setOnHover(void delegate() onHover)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

onClick
void delegate() onClick;
Undocumented in source.
onHover
void delegate() onHover;
Undocumented in source.
renderer
IButtonRenderer renderer;
Undocumented in source.
state
State state;
Undocumented in source.

Meta